w#include <iostream.h>
wvoid main() {
w int x = 10; // create integer variable called x
w int &ref = x; // make a reference variable that refers to x
w cout << "x is " << x <<
" and ref is " << ref << endl;
w cout << "Now we change ref to equal 25 ...
" << endl;
w ref =
25;
w cout
<< "And now x is "
w << x
w <<
" and ref is "
w <<
ref
w <<
endl;
w}